<template>
	<view class="container" :style="{height:`calc(100vh - ${height}px)`}">
		<Header back title="展会地图"></Header>
		<view class="wapper">
			<image src="@/static/icons/map.png" mode="widthFix" @click="preview"></image>
		</view>
	</view>
</template>

<script>
	import Header from '@/components/haeder.vue'
	import banner1 from '@/static/banner/banner1.png'
	import map from '@/static/icons/map.png'
	export default {
		components: {
			Header
		},
		data() {
			return {
				height: 0,
				content: '',
				title: "展会介绍"
			}
		},
		methods: {
			preview() {
				uni.previewImage({
					urls: [map]
				})
			}
		},
		async mounted() {
			let res = await this.$api.getNavs1()
			console.log(res.value.content)
			this.content = res.value.content
		},
		created() {
			let app = uni.getSystemInfoSync();
			this.height = app.windowBottom
		}
	}
</script>

<style scoped lang="scss">
	.container {
		width: 100vw;
		overflow: auto;
		display: flex;
		flex-direction: column;

		.wapper {
			flex: 1;
			background: #f2f2f2;
			z-index: 100;
			font-size: 24rpx;
			margin-top: -280rpx;
			image {
				width: 100%;
			}
		}
	}
</style>